import axios from './http'
export default {
	// 登录
	getLogin(data) {
		return axios.post('/login', data)
	},
	
	// 退出登录
	loginOut(){
		return axios.post('/loginOut')
	},
	
	// 获取用户列表
	getUserList(page, pageSize, user_name = '', type = '', phone = '') {
		return axios.get(
			'/getUserList?' + 'page=' + page + '' +
			'&pageSize=' + pageSize + '' +
			'&user_name=' + user_name + '' +
			'&type=' + type + '' +
			'&phone=' + phone + ''
		)
	},
	// 申请创作者记录
	getUserCreator(page, pageSize) {
		return axios.get('/getMpUser?page=' + page + '&pageSize=' + pageSize)
	},

	// 提现记录
	getUserTixian(page, pageSize) {
		return axios.get('/getUserTixian?page=' + page + '&pageSize=' + pageSize)
	},

	// 提现申请
	tixianAudit(data) {
		return axios.post('/tixianAudit', data)
	},

	// 创作者审核
	postMpAudit(data) {
		return axios.post('/mpAudit', data)
	},
	
	// 获取用户登录记录
	getUserLoginLog(page, pageSize) {
		return axios.get('/getUserLoginLog?page='+page+'&pageSize='+pageSize)
	},
	
	// 修改密码
	editPassword(data){
		return axios.post('/editPassword', data)
	},
	
	// 获取用户反馈信息
	getUserFeedback(page, pageSize) {
		return axios.get('/getUserFeedback?page='+page+'&pageSize='+pageSize)
	},
	
	
	// 获取VIP订单列表
	getVipOrderList(page, pageSize) {
		return axios.get('/getVipOrderList?page='+page+'&pageSize='+pageSize)
	},
}